//
//  XLButton.h
//  campus
//
//  Created by xl on 2019/11/11.
//  Copyright © 2019 xl. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface XLButton : UIButton

/** 设置button的响应区域 **/
- (void)setCurrentButtonHotSize:(CGSize)size;

/** 图文排列。必须先确定bounds **/
- (void)verticalImageAndTitle:(CGFloat)spacing;

- (void)setButtonAlpha:(CGFloat)alpha;

/** 左文右图。用于navigationbarTitlebutton **/
- (void)setNavigationbarType;

/// 设置button点击事件Block
/// @param buttonAction  TouchUpInside触发
-(void)setButtonAction:(void (^)(XLButton * button))buttonAction;

@end

NS_ASSUME_NONNULL_END
